import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 DeviceMaintain 分页列表
 */
export function getDeviceMaintainPagination(data: any) {
  return axios.get(`${context}/deviceMaintain/pagination`, { params: data })
}

/**
 * 获取 DeviceMaintain 所有数据
 */
export function getDeviceMaintainAllList(data: any) {
  return axios.get(`${context}/deviceMaintain/allList`, { params: data })
}

/**
 * 获取 DeviceMaintain 详情
 */
export function getDeviceMaintainDetailById(id: any) {
  return axios.get(`${context}/deviceMaintain/${id}`, { params: { id } })
}

/**
 * 新增 DeviceMaintain
 */
export function addDeviceMaintain(data: any) {
  return axios.post(`${context}/deviceMaintain`, data)
}

/**
 * 修改 DeviceMaintain
 */
export function updateDeviceMaintain(data: any) {
  return axios.put(`${context}/deviceMaintain`, data)
}

/**
 * 删除 DeviceMaintain
 */
export function batchRemoveDeviceMaintain(data: any) {
  return axios.post(`${context}/deviceMaintain/batchRemove`, data)
}
